-module(hub_im_admin_sup).
-behaviour(supervisor).

-export([start_link/0]).
-export([init/1]).

-include("cus.hrl").

start_link() ->
	supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init([]) ->
	start_redis(),
	{ok, {{one_for_one, 1, 5}, []}}.

start_redis() ->
	[Host, Port, DB, Pwd, Size] = cus_config:redis(),
	cus_redis:start(?list(Host), Port, DB, ?list(Pwd), Size).
